package com.example.seabedmusic.entity;
//随机音乐 API 响应类
public class RandomMusicResponse {
    private int code;
    private String msg;
    private RandomMusicData data;

    // Getter 和 Setter
    public int getCode() { return code; }
    public void setCode(int code) { this.code = code; }

    public String getMsg() { return msg; }
    public void setMsg(String msg) { this.msg = msg; }

    public RandomMusicData getData() { return data; }
    public void setData(RandomMusicData data) { this.data = data; }

    public static class RandomMusicData {
        private String name;        // 歌曲名
        private String author;      // 歌手
        private String pic;         // 封面
        private String url;         // 播放链接
        private String lrc;         // 歌词
        private String album;       // 专辑名
        private long time;          // 时长（毫秒）

        // Getter 和 Setter
        public String getName() { return name; }
        public void setName(String name) { this.name = name; }

        public String getAuthor() { return author; }
        public void setAuthor(String author) { this.author = author; }

        public String getPic() { return pic; }
        public void setPic(String pic) { this.pic = pic; }

        public String getUrl() { return url; }
        public void setUrl(String url) { this.url = url; }

        public String getLrc() { return lrc; }
        public void setLrc(String lrc) { this.lrc = lrc; }

        public String getAlbum() { return album; }
        public void setAlbum(String album) { this.album = album; }

        public long getTime() { return time; }
        public void setTime(long time) { this.time = time; }
    }
}